﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StringExtensions
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = "Math.Pow(4, 4, 7   ,4   ,9  )";

            Command c = input.ParseCommand();

            Console.WriteLine(c.OriginalForm);
            Console.WriteLine(c.Name);

            foreach (var item in c.Parameters)
            {
                Console.WriteLine(item);
            }
        }
    }
}
